package main;

import javax.swing.SwingUtilities;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

import model.Model;

import view.MainWindow;
import controller.Controller;

/**
 * @version 1.0
 * @author Angel
 *
 */
public class SensorApp {

	

	public static void main(String[] args) {
		
		//Creamos objetos de modelo y vista
		
		MainWindow view = new MainWindow();
		Model model = new Model();
		
		//Skin propio de java
		try {
			
			UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
			SwingUtilities.updateComponentTreeUI(view);
			new Controller(view, model).go();
			
		} catch (UnsupportedLookAndFeelException ex) {}
          catch (ClassNotFoundException ex) {}
          catch (InstantiationException ex) {}
          catch (IllegalAccessException ex) {}

	}

}
